package com.hxd.otc.module.convenience.contract;

import com.hxd.otc.common.enums.ConvenienceBusinessTypeEnum;
import com.hxd.otc.module.convenience.bean.PhoneLocationBean;
import com.hxd.otc.module.convenience.bean.PrepaidGoodsBean;
import com.hxd.otc.module.convenience.bean.RefuelingServiceBean;
import com.hxd.otc.mvp.base.IBasePresenter;
import com.hxd.otc.mvp.base.IBaseView;

import java.util.ArrayList;

/**
 * Created by lzy on 2018/12/12 0012.
 * description ${话费充值Contract}
 */
public interface PrepaidRechargeContract {
    interface IView extends IBaseView {
        void requestPrepaidRechargeInfoSuccess(ArrayList<PrepaidGoodsBean> prepaidGoodsBeans);

        void getPhoneLocationSuccess(String phoneNumber, PhoneLocationBean phoneLocation);

        void getPhoneLocationFail(String phoneNumber, String errMessage);

    }

    interface IPresenter extends IBasePresenter {
        void getPrepaidRechargeInfo();

        PhoneLocationBean getPhoneLocation(String phoneNumber);

        void requestPhoneLocation(String phoneNumber);

        void setRefuelingServiceBean(RefuelingServiceBean refuelingServiceBean);

        void setBusinessType(ConvenienceBusinessTypeEnum businessType);

        ConvenienceBusinessTypeEnum getBusinessType();
    }
}
